package com.gxa.springcloud324.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author bill
 * @date 2023/8/2 9:37
 */

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping(value = "/get",produces = MediaType.APPLICATION_JSON_VALUE)
    public Map get(){
        Map<String,Object> data = new HashMap<>();
        data.put("code",200);
        data.put("msg","response from 8002");
        return data;
    }
}
